package com.cxyd.modules.job.task.logicTask;

import com.cxyd.common.constant.Constant;
import com.cxyd.modules.api.dto.CallbackDTO;
import com.cxyd.modules.api.service.CallbackService;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component("callback-task")
public class CallbackTask {
    private final CallbackService receiveWcsService;

    public CallbackTask(CallbackService receiveWcsService) {
        this.receiveWcsService = receiveWcsService;
    }

    public void handle() {
        //扫描表[WMS_RECEIVE_WCS]
        CallbackDTO record = receiveWcsService.getOneByPk(null);
        if (record == null) {
            return;
        }

        final Map<String, Object> param = new HashMap<>();
        param.put("clientCode", Constant.ClientCode.WMS.getCode());
        param.put("userId", Constant.ClientCode.WMS.getId());
//        receiveWcsService.callbackHandle(param);
    }
}
